<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
<<<<<<< HEAD
    <title></title>
=======
    <title>Document</title>
>>>>>>> 6cd44dbe7981030d97e554bdf21f4ce07f0efdc3
</head>
<body>
    <div id="app">

    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <script>
       let str ="a=1&b=2&c=3"
       let arr=str.split("&")
       console.log(arr)
       let obj={}
arr.forEach((r)=>{
    let arr=r.split("=")
    console.log(arr)
    let key =arr[0]
    console.log(key)
    let val =arr[1]
    console.log(val)
    obj[key] =val

})
console.log(obj)

    </script>
</body>
</html>